<?php

if( !function_exists('__autoload') )
{
    function __autoload($class_name) {
    require_once $class_name . '.php';
    }
}

$processo = new Processo();
$licitacao = $processo->CarregarLicitacao( $_POST['modalidadeLicitacao'] );
$fundamentoLegal = $_POST['fundamentoLegal'];
$justificativaLegal = $_POST['justificativaLegal'];

?>
<div id="script" style="display:none">
	function EnviarDados()
	{
		var modalidadeLicitacao = <?php echo $_POST['modalidadeLicitacao']; ?>;
		var fundamentoLegal = "<?php echo $_POST['fundamentoLegal']; ?>";
		var justificativaLegal = "<?php echo $_POST['justificativaLegal']; ?>";
			
		var dados  = 'modalidadeLicitacao='+modalidadeLicitacao;
        	dados += '&fundamentoLegal='+fundamentoLegal;
            dados += '&justificativaLegal='+justificativaLegal;

		EnviarDadosDiv("tdInclude", "EnviarDadosProcesso.php?operacao=2&juncao="+<?php echo $_GET['juncao']?>+"&processoId="+<?php echo $_GET['processoId'] ?>, dados);
	}
</div>
<table class='tabela' width='650' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
	<tbody>
		<tr>
			<td colspan='2'><div class='passosTitulosTabelas' style='width:650; height:20;'>Confirma��o do Fundamento Legal</div></td>
		</tr>
		<tr>
			<td colspan='2'>&nbsp;</td>
		</tr>
		<tr>
			<td class='subTextoTabelas' width='30%'>&nbsp;&nbsp;Modalidade de licita��o:</td>
		    <td><?php echo $licitacao[1]; ?></td>
		</tr>
		<tr>
			<td colspan='2'>&nbsp;</td>
		</tr>
		<tr>
			<td class='subTextoTabelas' colspan='2'>&nbsp;&nbsp;Fundamento Legal:</td>
		</tr>
		<tr>
			<td colspan='2'>&nbsp;</td>
		</tr>
		<tr>
			<td colspan='2'><span style='margin: 18px; width: 550px;'><?php echo $fundamentoLegal; ?></span></td>
		</tr>
		<tr>
			<td colspan='2'>&nbsp;</td>
		</tr>
		<tr>
			<td class='subTextoTabelas' colspan='2'>&nbsp;&nbsp;Justificativa da estrat�gia de contrata��o:</td>
		</tr>
		<tr>
			<td colspan='2'>&nbsp;</td>
		</tr>
		<tr>
			<td colspan='2' style='margin-top:-20px; height: 10px;'><span style='margin: 18px; width: 550px;'><?php echo $justificativaLegal; ?></span></td>
		</tr>
		<tr>
			<td colspan='2'>&nbsp;</td>
		</tr>
	</tbody>
	<tfoot>
		<tr>
	    	<td colspan='2' height='46'><div style='position:relative;left:225px'><img src='templates/btvoltar.JPG' style='width:100px;height:30px; cursor: pointer;' onClick="Voltar('AvaliarEstrategiaContratacao.php?juncao='+<?php echo $_GET['juncao']?>+'&processoId='+<?php echo $_GET['processoId'] ?>,'tdInclude');"/>&nbsp;
	    	<img src='templates/btavancar.JPG' style='width:100px;height:30px; cursor: pointer;' onClick='EnviarDados();'/></div></td>
	    </tr>
	</tfoot>
</table>